package com.xh.web.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 项目权限对象 d_project_auth
 *
 * @author dongxeufei
 * @date 2020-09-08
 */
public class DProjectAuth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 项目ID */
    private String projectId;

    /** 用户ID */
    private long userId;

    /** 数据库权限(new新增表，update修改表，del删除表) */
    private String dbAuth;

    /** 创建人姓名 */
    private String createName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;

    /** 删除标记 */
    private String delFlag;

    /** 电话 */
    private String phonenumber;
    /** 姓名*/
    private String userName;

    public void setId(String id)
    {
        this.id = id;
    }
    public String getId()
    {
        return id;
    }


    public void setProjectId(String projectId)
    { this.projectId = projectId;

    }
    public String getProjectId()
    {
        return projectId;
    }

    public void setUserId(long userId)
    {
        this.userId = userId;
    }
    public long getUserId()
    {
        return userId;
    }

    public void setDbAuth(String dbAuth)
    {
        this.dbAuth = dbAuth;
    }

    public String getDbAuth()
    {
        return dbAuth;
    }
    public void setCreateName(String createName)
    {
        this.createName = createName;
    }

    public String getCreateName()
    {
        return createName;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setPhonenumber(String phonenumber)

    { this.phonenumber = phonenumber; }

    public String getPhonenumber() {

        return phonenumber; }






    public void setUserName(String userName)

    { this.userName = userName; }

    public String getUserName() {

        return userName; }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("userId", getUserId())
            .append("dbAuth", getDbAuth())
            .append("createBy", getCreateBy())
            .append("createName", getCreateName())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .append("delFlag", getDelFlag())
            .append("phonenumber", getPhonenumber())
                .append("userName", getUserName())
            .toString();
    }
}
